<template>
    <div class="home">
        <el-container class="container">
            <el-header height="40px" class="headercolor">
                <div class="headerbox">
                    <div class="headername">
                        管理系统
                    </div>
                    <div class="headerbody">
                        <Tags/>
                    </div>
                    <div class="headeruser">
                        用户信息
                    </div>
                </div>
            </el-header>
            <el-container >
                <!-- <el-aside width="200px" class="aside">
                    <el-row class="tac">
                        <el-col :span="24">
                            <el-menu
                            default-active="2"
                            class="el-menu-vertical-demo"
                            @open="handleOpen"
                            @close="handleClose"
                            background-color="#545c64"
                            text-color="#fff"
                            active-text-color="#668aff">
                            <el-submenu index="1">
                                <template slot="title">
                                    <i class="el-icon-location"></i>
                                    <span>系统信息</span>
                                </template>
                                <el-submenu index="1-4">
                                    <template slot="title">选项4</template>
                                    <el-menu-item index="1-4-1">选项1</el-menu-item>
                                </el-submenu>
                            </el-submenu>
                            </el-menu>
                        </el-col>
                        </el-row>
                </el-aside> -->
                <el-main>
                    <router-view/>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
    import  Tags  from  '@/components/tag/Tags.vue';

    export default {
        components:{
            Tags
        },
    }
</script>

<style scoped>
    .home {
        height: 100%;
    }
    .headercolor{
        height: 40px;
        background: rgba(91, 79, 253, 0.815); /* Old browsers */
        background: -moz-linear-gradient(top,  rgba(91, 79, 253, 0.815) 20%, #668aff 80%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(91, 79, 253, 0.815) 20%,#668aff 80%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(91, 79, 253, 0.815) 20%,#668aff 80%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='rgba(91, 79, 253, 0.815)', endColorstr='#668aff',GradientType=0 ); /* IE6-9 */
    }
    .headerbox{
        height: 40px;
        display: flex;
        flex-direction: row ;
    }
    .headerbox .headername{
        color: #fff;
        height: 40px;
        width: 180px;
        font-size: 20px;
        line-height: 40px;
    }
    .headerbox .headerbody{
        color: #fff;
        height: 40px;
        width:calc(100% - 500px);
        line-height: 40px;
    }
    .headerbox .headeruser{
        color: #fff;
        width: 280px;
        height: 40px;
        line-height: 40px;
    }
    .container{
        height: 100%;
    }
    .aside {
        height: 100%;
        background: #545c64; 
    }
</style>